﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NewAI.FSM
{
    /// <summary>
    /// 有限状态机
    /// </summary>
    /// <typeparam name="EntityType">实体（共享的数据内容）</typeparam>
    public abstract class State<EntityType>
    {
        public virtual void Enter(EntityType entity) { }
        public virtual void Execute(EntityType entity) { }
        public virtual void Exit(EntityType entity) { }
    }
}
